package thriftx.core;

import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;
import thriftx.core.service.MessagePrinter;

public class Application {

    public static void main(String[] args) {
        ApplicationContext context =
                //new AnnotationConfigApplicationContext(Application.class);
                new ClassPathXmlApplicationContext(new String[]{"ApplicationContext.xml"});
        MessagePrinter printer = context.getBean(MessagePrinter.class);
        printer.printMessage();
    }
}
